package com.controller;


import com.zsk.common.CommonUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class TestController {
    @RequestMapping("/")
    public String index() {
        return "index";
    }

    @RequestMapping("/test")
    @ResponseBody
    public String test() {
        return "hello test api";
    }

    @RequestMapping("/uuid")
    @ResponseBody
    public String uuid() {
        int a = 10;
        int b = 10;
        int c = 10;
        return CommonUtil.getUUID() + ":zhangsike1";
    }
}
